package com.tz.crm.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.sql.Blob;

/**
 * Created by Administrator on 2017/1/28.
 */
@Entity
@Table(name = "tbl_indexpicture")
public class IndexPicture extends BaseEntity {

    private String title;

    private Blob content;

    /**
     * 空参构造
     */
    public IndexPicture() {
    }

    /**
     * 带参构造
     * @param title 图片名称
     */
    public IndexPicture(String title) {
        this.title = title;
    }

    @Column
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Lob
    @Column
    public Blob getContent() {
        return content;
    }

    public void setContent(Blob content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "IndexPicture{" +
                "title='" + title + '\'' +
                ", content=" + content +
                '}';
    }
}
